/*
** starwars.h for  in /u/all/caille_c/cu/rendu/colles/XXXXXX
** 
** Made by carole cailleux
** Login   <caille_c@epitech.net>
** 
** Started on  Mon Apr 26 19:22:23 2010 carole cailleux
** Last update Mon Apr 26 23:11:47 2010 carole cailleux
*/

#ifndef			_STARWARS_H_
# define		_STARWARS_H_

# define		LIVES 42
# define		SPEED 500

typedef struct		s_params
{
  int			speed;
  int			lives;
  int			autofire;
  int			points;
  int			x;
  int			y;
}			t_params;

void			my_putstr(char *str);
void			aff_screen(void);
void			fill_params(int ac, char **av, t_params *params);
void			my_putchar(char);
void			my_puterror(char *);
void			get_values(t_params *params, char **av, int ac);
void			set_modes(void);
void			print_line(void);
void			print_space(void);
void			print_borders(void);
void			print_screen(void);
void			main_starship(void);
void			enemy_one(void);
void			enemy_two(void);
void			enemy_three(void);
char			**get_term(void);
void			mk_meteors(void);
int			my_strlen(char *);
int			my_get_nbr(char *);
int			my_putnbr(int);
char			*get_content_env(char **environ, char *name_content);
int			compare_str(char *s1, char *s2);
char			*my_strdup(char *str);
void			*xmalloc(int size);
void			clear_screen(void);
int			my_outc(int c);
void			gere_key(t_params *params);
void			move_cursor(int x, int y);
void			print_info(t_params *params);

#endif			/* _STARWARS_H_ */
